/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/Template.php(344)
332 333 /** 334 * Return the list of ALL files present in the file directory 335 * 336 * @param string $filesDir 337 * @return array 338 */ 339 static public function getOtherFiles($filesDir) 340 { 341 $otherFiles = array(); 342 if (file_exists($filesDir) && $handle = opendir($filesDir)) { 343 while (false !== ($file = readdir($handle))) { 344 if (!is_dir($file)) { 345 $otherFiles[] = array("name" => $file); 346 } 347 } 348 closedir($handle); 349 } 350 return $otherFiles; 351 } 352 353 /** 354 * This function returns the complete URL path to a given template name 355 * 356 * @param string $sTemplateName
| #0 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/Template.php(344): is_dir("..") 339 static public function getOtherFiles($filesDir) 340 { 341 $otherFiles = array(); 342 if (file_exists($filesDir) && $handle = opendir($filesDir)) { 343 while (false !== ($file = readdir($handle))) { 344 if (!is_dir($file)) { 345 $otherFiles[] = array("name" => $file); 346 } 347 } 348 closedir($handle); 349 } |
| #1 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/TemplateConfiguration.php(613): Template::getOtherFiles("/var/www/vhosts/yfu.ch/survey.yfu.ch/themes/survey/bootswatch/fi...") 608 } 609 610 protected function getOptionPageAttributes() 611 { 612 $aData = $this->attributes; 613 $fileList = Template::getOtherFiles($this->filesPath); 614 $aData['maxFileSize'] = getMaximumFileUploadSize(); 615 $aData['imageFileList'] = []; 616 foreach ($fileList as $file) { 617 $isImage = $this->_filterImages($file); 618 |
| #2 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/TemplateConfiguration.php(630): TemplateConfiguration->getOptionPageAttributes() 625 } 626 627 public function getOptionPage() 628 { 629 $oTemplate = $this->prepareTemplateRendering($this->template->name); 630 $renderArray = array('templateConfiguration' => $oTemplate->getOptionPageAttributes()); 631 632 $oTemplate->setOptions(); 633 $oTemplate->setOptionInheritance(); 634 635 //We add some extra values to the option page |
| #3 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/base/CComponent.php(111): TemplateConfiguration->getOptionPage() 106 */ 107 public function __get($name) 108 { 109 $getter='get'.$name; 110 if(method_exists($this,$getter)) 111 return $this->$getter(); 112 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 113 { 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) |
| #4 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/db/ar/CActiveRecord.php(145): CComponent->__get("optionPage") 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
| #5 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/TemplateConfiguration.php(1025): CActiveRecord->__get("optionPage") 1020 if ($sAttribute === 'inherit') { 1021 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.) 1022 $sAttribute = $this->getParentConfiguration()->$name; 1023 } 1024 } else { 1025 $sAttribute = parent::__get($name); 1026 } 1027 1028 return $sAttribute; 1029 } 1030 |
| #6 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/controllers/admin/themeoptions.php(287): TemplateConfiguration->__get("optionPage") 282 * @return void 283 */ 284 private function _updateCommon(TemplateConfiguration $model, $sid = null) 285 { 286 $oModelWithInheritReplacement = TemplateConfiguration::model()->findByPk($model->id); 287 $templateOptionPage = $oModelWithInheritReplacement->optionPage; 288 289 Yii::app()->clientScript->registerPackage('bootstrap-switch', LSYii_ClientScript::POS_BEGIN); 290 $aData = array( 291 'model'=>$model, 292 'templateOptionPage' => $templateOptionPage |
| #7 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/controllers/admin/themeoptions.php(92): themeoptions->_updateCommon(TemplateConfiguration) 87 Yii::app()->user->setFlash('success', gT('Theme options saved.')); 88 $this->getController()->redirect(array('admin/themeoptions/sa/update/id/'.$model->id)); 89 } 90 } 91 92 $this->_updateCommon($model); 93 } else { 94 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 95 $this->getController()->redirect(Yii::app()->getController()->createUrl("/admin/themeoptions")); 96 } 97 } |
| #8 |
unknown(0): themeoptions->update("1")
|
| #9 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themeoptions, array("1")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
| #10 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themeoptions, ReflectionMethod, array("id" => "1", "sa" => "update", "iId" => "1")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
| #11 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("id" => "1", "sa" => "update")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
| #12 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/CController.php(286): CController->runAction(themeoptions) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #13 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/CController.php(265): CController->runActionWithFilters(themeoptions, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #14 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/application/controllers/AdminController.php(158): CController->run("themeoptions") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
| #15 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/CWebApplication.php(282): AdminController->run("themeoptions") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #16 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themeoptions/sa/update") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #17 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
| #18 |
+
–
/var/www/vhosts/yfu.ch/survey.yfu.ch/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |